package com.fjzx.androidframe.global;

import android.app.Application;

/**
 * @author xiongyongcong
 */
public class GlobalConfig {
    private static GlobalConfig ins;
    synchronized public static GlobalConfig ins() {
        if (ins == null) {
            ins = new GlobalConfig();
        }
        return ins;
    }

    private Application app;
    private boolean debug;

    public void setApp(Application app) {
        this.app = app;
    }

    public void setDebug(boolean debug) {
        this.debug = debug;
    }

    public Application getApp() {
        return app;
    }

    public boolean isDebug() {
        return debug;
    }
}
